<?php
class Member extends Controller {
	function Member(){
		parent::Controller();
		$this->load->helper(array('url','function','common'));
 		$this->load->scaffolding('mc_news');
 		//调用前台公用Model
 		$this->load->model('Mhome');
	}

	//我的订单
	function center(){
		load_member_view("member_left","order_my",$this->member_data());		
	}

	//会员注册
	function register(){
		load_view("register",$this->data());		
	}

	//会员中心相关数据
	function member_data(){
		$member_data['flag']=get_session("username");
		//$member_data
		return $member_data;
	}

	function data(){
		/*--------------------------------左侧部分【left】---------------------------------*/
		$data['lastes_news']=$this->Mhome->lastes_news($num=8);
		$data['banks']=$this->Mhome->banks();
		$data['news']=$this->Mhome->news($this->uri->segment(3,0),1);
		$data['flag']=NULL;
		return $data;
	}


}//end C_home
/* End of file home.php */
/* Location: ./system/application/controllers/home.php */